package yyl.springboot;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import yyl.springboot.component.HelloComponent;

@RunWith(SpringRunner.class)
@SpringBootTest
public class StarterSampleApplicationTest {

    @Autowired
    private HelloComponent helloComponent;

    @Test
    public void contextLoads() {
        System.out.println("autoconfigure" + helloComponent);
        helloComponent.hello();
    }
}
